/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upc.clase.demo.service.impl;

import edu.upc.clase.demo.dao.LocalDao;
import edu.upc.clase.demo.entity.Local;
import edu.upc.clase.demo.service.LocalService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author francklin
 */
@Service
public class LocalServiceImpl implements LocalService {

    @Autowired 
     private LocalDao localDao;

    @Override
    public List<Local> buscarTodos() {
     return localDao.buscarTodos();
    }

    @Override
    public Local buscar(Integer idLocal) {
        return localDao.buscar(idLocal);
    }

    @Override
    public List<Local> buscarPorNombre(String nombreLocal) {
       return localDao.buscarPorNombre(nombreLocal);
    }
    
}
